<%= form_tag({}) do -%> 
    <%= hidden_field_tag 'back_url', url_for(params) %>  
    <%= hidden_field_tag 'project_id', @project.id if @project %>
        <table class="people index">
        <tbody>
        <% @people.each do |person| %>
            <tr class="hascontextmenu">
                <td class="checkbox">
                    <%= check_box_tag "ids[]", person.id, false %>
                </td>
                <td class="avatar">
                    <%= avatar(person, :size => "32", :height => 32, :width => 32) %>
                </td>
                <td class="name">
                    <p><%= link_to person.name, person_path(person) %></p>
                    <p>
                        <%= mail_to person.mail %>
                        <p><%= person.phones.first %></p>
                    </p>
                </td>
                <td class="info">
                    <div class="title_and_company" >
                        <%= h person.job_title %>
                        <% if person.department %>
                            <%= " #{l(:label_people_at_department)} "  %> 
                            <%= person.department %> 
                        <% end %>
                    </div>
                    <div class="tags">
                        <%# render :partial => "tags_item", :collection => person.tags, :locals => {:is_note => false}  %>
                    </div>
                </td>
            </tr> 
        <% end %>

        </tbody>  
      </table>

<% end %>      

<p class="pagination"><%= pagination_links_full @people_pages, @people_count %></p>

